<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后勤服务集团质量满意度测评</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/Home/index/css/css.css" />
<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/Home/index/css/style.css" />
<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/Home/index/css/Table.css" />
<script type="text/javascript"
	src="__PUBLIC__/Home/index/script/jquery-1.8.3.min.js"></script>
<script type="text/javascript"
	src="__PUBLIC__/Home/index/script/jquery.cookie.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/script/vote.js"></script>
<link rel="stylesheet" type="text/css"
	href="__PUBLIC__/Home/plugins/jqtransformplugin/jqtransform.css" />
<script type="text/javascript"
	src="__PUBLIC__/Home/plugins/jqtransformplugin/jquery.jqtransform.js"></script>
<script language="javascript" type="text/javascript">
	 	vote.AjaxUrl="index.php?m=Detail&a=AjaxgetAverage";
	 	vote.itemid='{$itemid}';
	 	vote.class_id='{$class_id}';
		    $(function() {
		    	  /*重置之前的选择项*/
		    	if(vote.itemid>0){ //用于评价完成后的刷新

		    		vote.AjaxGetAverage(vote.itemid);
				     var firstinput=$('#'+vote.itemid);
				      firstinput[0].checked=true;
		    	}
		    	else{
		    		vote.itemid={$voteitem[0]['item_ID']};//获取第一项的item_ID209作为默认选中项

			    	 vote.AjaxGetAverage({$voteitem[0]['item_ID']});
				     var firstinput=$('#'+{$voteitem[0]['item_ID']});
				      firstinput[0].checked=true;
		    	}
		    	   /*第一次分组*/

		 	   if({$voteitem[0]['group_ID']}>0)  //如果包含分组
		 		   {
		 		    vote.Item_IDS="{$group_list[0]['item_ids']}";//第一项
		 		    vote.clickGroup2(vote.Item_IDS);
		 		    $("#group_list_tr input:eq(0)")[0].checked=true;
		 		   }
		 	   else
		 		   {
		 		   //清理掉那个tr  隐藏分组的tr选项卡
		 		   $("#group_list_tr").hide();
		 		   }
		    	
		     /*美化表单*/
		    $('form').jqTransform({ imgPath: '__PUBLIC__/Home/plugins/jqtransformplugin/img/' });
		    /*如果内容过多切换背景图片*/
		    var height=$('#data_table').height();
		    if(height>450){
		    	$('.data_section').css({"background-image":"url('__PUBLIC__/Home/index/images/Tablelayerbg2.png')","height":"700px"});
		    }
		    if(height>600)
		    	{
		      	$('.data_section').css({"background-image":"url('__PUBLIC__/Home/index/images/Tablelayerbg3.png')","height":"1320px"});  
		    	}
		   //如果字符太长就剪切字符串
		 
		   $('#select_Com').find('label').each(function(){
			 var contents=  $(this).text();
			if(contents.length>13)
			{
			var	content=contents.substr(0,13);
				 $(this).html(content);
			}
			 $(this).attr("title",contents);
		   });
	
		    });
		   </script>
<style type="text/css">
div.table_menu {
	display: block;
	float: left;
width: 180px;
float: left;
height: 30px;
overflow: hidden;
}
</style>
</head>
<body>
<div class="zhong"><!--top-->
<div class="top">
<div class="top_rightwrap">
<div class="top_right">
<div class="top_right_1"><a href="javascript:;"
	onclick="this.style.behavior='url(#default#homepage)';this.setHomepage('http://ftpuser.user.nserver.cn/vote');">设为首页</a>
| <a
	href="javascript:window.external.AddFavorite('http://ftpuser.user.nserver.cn/vote', '质量满意度测评')">加入收藏</a>
| <a href="http://hqjt.ujs.edu.cn/">后勤服务</a></div>
</div>
</div>
<div class="top_left">
    <img src="__PUBLIC__/Home/index/images/logo.png" /></div>
<div class="clear"></div>
</div>
<!--top-->
<div id="page">

<div class="wrapper">
<!--menu-->
<include file="./Tpl/Resource/top.html"/>
<!--menu--> <!--详细信息-->
<div class="container2">
<form id="form1" action="index.php?m=Detail&a=voteItem" method="post">
<div class="data_section">
<table id="data_table">
	<tr class="a0">
		<th colspan="6">{$class_name}评价栏 (总平均分<span>{$score}</span>)</th>
	</tr>
	  <tr class="a0" id="group_list_tr">
  <td colspan="6">
  	<foreach name="group_list" item="value">
          <input type="radio"
			id="group_{$value['group_ID']}"   value="{$value['item_ids']}" name="group_list"
			onclick="vote.clickGroup(this)" /><label>{$value['group_name']}</label>
	</foreach>
  </td>
  </tr>
	<tr class="a0">
		<td colspan="6" id="select_Com">
		<foreach name="voteitem"
			item="value">
		<div class="table_menu"><input type="radio"
			id="{$value['item_ID']}" data="{$value['average']}" "
			value="{$value['item_ID']}" name="question" class="company "
			onclick="vote.GetItemAverage(this)" /><label>{$value['item_name']}</label></div>
		</foreach></td>
	</tr>
      <!---评价项-->
	<foreach name="votescore" item="value">
	<tr class="{$value['item_group']}">
		<td>{$value['score_name']}</td>
		<td><input type="radio" name="{$value['item_index']}" value="95"><label>满意:
		</label></td>
		<td><input type="radio" name="{$value['item_index']}" value="85"><label>基本满意:
		</label></td>
		<td><input type="radio" name="{$value['item_index']}" value="65"><label>不满意:
		</label></td>
		<!--<td><input type="radio" name="{$value['item_index']}" value="0"><label>不了解:
		</label></td>-->
		<td class="avg" id="{$value['item_index']}">平均分等数据正在加载...</td>
	</tr>
	</foreach>
	<tr class="a0">
		<td colspan="6"><span style="float: left;" id="thisavg">平均分为{$score}</span>
		<input id="hiddeninput" type="hidden" name="itemid" value="1"/>
		<input id="limitcount" type="hidden" name="limitcount" value="{$limitcount}"/>
		<input id="thescore" type="hidden" name="thescore" value="0"/><!-- 分数回传 -->
	    <input id="allscore" type="hidden" name="allscore" value="0"/><!-- 总分数回传 -->
		<input id="classid" type="hidden" name="classid" value="{$class_id}"/>
		<a class="btn submit" href="javascript:;" onclick="vote.check_permit()">提交</a></td>
	</tr>
</table>
</div>

</form>
</div>
</div>
</div>
    <!--动态等待图-->
    <div id="loading" class="loading_wrapper" style="display: none;">
        <div  class="loading">正在加载...</div>
    </div>
<include file="./Tpl/Resource/footer.html"/>
</div>
</body>
</html>
